<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="utf-8">
		<title>后台管理</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
		<link rel="stylesheet" th:href="@{/static/commen/css/layui.css}" media="all">
        <link rel="stylesheet" th:href="@{../../static/back/css/admin.css}" media="all">
	</head>
	<body>
        <div class="layui-fluid">
			<div class="layui-col-md12">
				<form class="layui-form layui-form-pane" action="" id="frm-reg" >
					<!--<div class="layui-form-item">
						<label class="layui-form-label">上级类型</label>
						<div class="layui-input-inline layer-inputs">
							<select name="pid" id="pid" lay-filter="pid">
								<option value="0" selected="selected">顶级分类</option>
								<option value="1">系统文章</option>
								<option value="2">基础文章</option>
							</select>
						</div>
						<div class="layui-form-mid layui-word-aux">请选择上级文章类型</div>
					</div>-->
					<div class="layui-form-item">
						<label class="layui-form-label">分类名称</label>
						<div class="layui-input-inline layer-inputs">
							<input type="text" name="categoryName" id="categoryName" th:value="${category != null ? category.categoryName : ''}" placeholder="分类名称" class="layui-input">
						</div>
<!--						<div class="layui-form-mid layui-word-aux">请输入分类名称</div>-->
					</div>
					<!--<div class="layui-form-item">
						<label class="layui-form-label">状态</label>
						<div class="layui-input-inline layer-inputs">
							<input type="number" min="0" name="sort" id="categoryStatus" placeholder="栏目排序值" value="1" class="layui-input">
						</div>
						<div class="layui-form-mid layui-word-aux">从小到大排序,越小越在前</div>
					</div>-->
					<div class="layui-form-item">
						<label class="layui-form-label">状态</label>
						<div class="layui-input-inline layer-inputs">
							<input type="radio" name="categoryStatus" value="1" title="生效" th:checked="${category == null || (category != null && category.categoryStatus == 1)}">
							<input type="radio" name="categoryStatus" value="0" title="无效" th:checked="${category != null && category.categoryStatus == 0}">
						</div>
					</div>
					<div class="layui-form-item" style="margin-left: 50px;">
						<input type="hidden" name="id" id="id" th:value="${category != null ? category.id : ''}">
						<input type="hidden" name="request_url" id="request_url" value="/back/category/setCategory">
						<button class="layui-btn" id="execute" lay-submit="execute" lay-filter="execute"><i class="layui-icon layui-icon-form"></i>保存</button>
					</div>
				</form>
			</div>
		</div>	
    </body>
</html>
<script th:src="@{/static/back/js/jquery-3.4.1.min.js}"></script>
<script th:src="@{/static/commen/layui.js}"></script>
<script th:src="@{/static/back/js/admin.js}"></script>